package crawler.cnki.service.impl;

import crawler.cnki.entity.Project;
import crawler.cnki.service.ProjectService;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProjectImpl implements ProjectService {
    @Resource
    private MongoTemplate mongoTemplate;
    @Override
    public void save(Project project) {
        mongoTemplate.save(project);
    }
}
